package com.schematic.flixel.donquicoco
{
	import org.flixel.FlxSprite;

public class stickDirect extends FlxSprite
{
    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
     * Creates a new instance of this class.
     */
    public function stickDirect(x:Number = 0, y:Number = 0)
    {
        super(x, y);

        loadGraphic(Skins.JOYSTICKDIRECT:, true, false, 113,133, true);
        var frameRate:int = 8;
		
        addAnimation(
            "PRESSEDUP",
            [0],
            frameRate,
            true
         );
		
		addAnimation(
			"PRESSEDDOWN",
			[1],
			frameRate,
			true
		);

    }
	    
    //--------------------------------------------------------------------------
    //
    //  Methods
    //
    //--------------------------------------------------------------------------
	
    //----------------------------------
    //  HitFloor 
    //----------------------------------
    /**
     * makes DonKingKo Hit floor
     */
    public function pressUp():void
    {
        	play("PRESSEDUP");
    } 
	
	public function pressDown():void
	{
		play("PRESSEDDOWN");
	} 
	
}
}